Add visibility-related functions to window

Includes the win32 implementation.
Will open issues for x11 and cocoa implementations.