Hi Frodo,
The window well is dug deeper than the storm drain pipe, so it would be hard to install a drain in the well that connects to the pipe. Also, if the pipe is backfilling, it wouldn't help.
Hmm, you make a GREAT point that the water is probably following the gravel bed back towards the...