Dispatches the given function to be executed on the thread this application instance has been created on,
and passes the given data to it.
This function is thread safe.
Frees memory for the application handle.
Call bw_Application_finish before you call this function.
Freeing the application handle is generally not necessary, as all memory in use by the process gets released anyway after shutdown.
Marks the browser window handle as not being used anymore.
This makes it so that if and when the window gets closed, everything is freed and cleaned from memory.
This function can be called from any thread so it needs to be thread safe.
Creates a new (empty) window
The returned pointer is a handler for the window.
bw_Window_drop needs to be called on it after it is done being used,
otherwise the window is never actually destroyed and memory leakes happen.