when clicking inside the dialog and releasing outside the dialog, the dialog closes.
I would expect only a press outside the dialog to close the dialog.
With e.g a a slider widget in the dialog, its very easy to click inside the dialog and move the mouse outside the dialog, which would close the dialog