def window(raise_on_error=True) -> BaseWindow:
if not WINDOW and raise_on_error:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>return WINDOW<EOL>
The window instance we are rendering to

:param raise_on_error: Raise an error if the window is not created yet