Thread-safe API for the windowing system. On OSX, this must be called on the main thread.
Handle input events and render the window. Call this in a loop as long as isOpen is true. On OSX, this must be called on the main thread.
isOpen
Changes to false after the window has closed. After the window has closed, it's no longer necessary to render the window.