Click outside me

A click on the dark area closes this window. This is the default.

Outside clicks are ignored

Only the corner X, the button and Escape close this window.