Start with raycasting to detect which window is active.