setFocusable

fun setFocusable(focusable: Boolean)(source)

Changes whether the window can be focused.

On macOS it does not remove the focus from the window.