Base class for modal dialogs, i.e., a dialog which covers the UI behind it and prevents interaction with that UI until the user has dismissed the dialog.