According to the NEC, is it permitted to put an electrical junction box inside a dishwasher bay behind the actual dishwasher?
If it ever had to be reached, which I hope is never, the dishwasher would need to be removed.
The junction box would not be supplying power to the dishwasher but supplying other ends. I.E. it is a separate circuit than that of the dishwasher circuit.