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