Close dialog when the dialog loses focus (see #11698)
Merge pull request #1775 from jburel/floating-dialog

Floating dialog