Do under-cabinet outlets need to be provided above a window?
Not an inspector or electrician, but I was a supervisor of a job that had the same issue. With prior approval from the inspector since there is a requirement/restriction for countertop mounted outlets, the inspector allowed a pop up outlet in the countertop.
Here is a pic of the countertop with the window, sorry I can only tell you the outlet is near the red box on the counter. Wall framing did not allow it to go anywhere else to get it close enough to the sink...
As mentioned, it was pre-approved by the inspector. This was about 3 years ago.