Checking if the window is created.