Add visibility-related functions to window

Includes the win32 implementation.
Need to open issues for x11 and cocoa implementations after merge.