I thought about that, but if I hide the title bar, you can't move the window around the screen, and the user can press alt + F4.
There is a way to "-retain" the window when someone clicks the X, but is there a way to set a scriptJob which would check that condition?
scriptJob uiDeleted only works when the window is deleted, but I need to run a confirm dialog box before that actually happens.
I don't know, this seems to be a simple thing, but I can't wrap my mind around it.