You could actually do this in a lot of ways depending how your game is set up.
You could have a 'detector' sprite just above the window which, when an enemy enters it, spawns the arrow directly below on the screen before the enemy enters the screen.
Alternatively if you are spawning those enemies right above the window, you could simply spawn the arrow at the same time with the same X but a greater Y.