This method gets the window visibility state.
Returns true if the window is visible, otherwise false is returned.