Fix #2527 - Apply dialog theme to dialogs

Ensures the dialog is properly positioned on the screen
and treated like a dialog instead of a semi-floating window

Fixes #2527
Merge pull request #2860 from campbeb/fix2527

Fix #2527 - Apply dialog theme to dialogs