Is there a minimum required distance between window and kitchen countertops?
There should be no issue with the arrangement you plan to do. The only issue would be if moving the box required cutting the wall framing to allow the relocation. If the box is already protected by a GFCI outlet, that should cover any other concern that there may be.