Function WindowIsVisible()
Returns true if the window is visible, otherwise it returns false.