public native run() as Int
Shows the window and starts its native event loop until it is closed. Hiding it through isVisible = false does not stop the loop or GUI timers.
Unhandled exceptions from input, timer or painting callbacks propagate to this call instead of leaving an unresponsive window with no rendering. Catch them in the callback when the interaction can recover locally.
Zero on normal closure, or a nonzero backend failure status.
window = MainWindow("Dashboard")
window.run()