Only validate the source if it is a viewable window. Stops the cursor flickering when it is above an unviewable window.