close

fun close()

Closes the window.

Note: This method is not thread safe. It needs to be called on the same thread as the one that opened the window.