Ensure there is a window