This is an example of why they teach people not to silhouette themselves in a window when investigating a noise.
To be fair, she was in the window with no light behind her, attempting to see what was going on outside. The only reason she became visible was because the cop shined his flashlight into the window then lit her up with his gun in less than a second.