Run the GUI drawing panel in a separate thread so that the application
that is drawing to the window can be paused and restarted (never called by an application).
Wait for a mouse click on a specific mouse button (your application goes to sleep
until the specific mouse button has been clicked (pressed and released)).