Function Window.hasSurface
Wraps SDL_HasWindowSurface
(from SDL 2.28) which checks whether there is a surface associated with
the window
bool hasSurface() @property @trusted const;
Returns
true
if the window has an associated surface, otherwise false