Function Window.valid

Whether the native window handle is valid.

bool valid() @property const;

May be false if Window initialization failed .