This prevents creating a WindowItem until we know that the window is actually going to be visible on the screen.