Ui-Group - dialog type, act like a wait window stopping user interactions for a while

It would be nice if the ui-group dialog type had a feature so that, nothing can be clicked/selected outside the dialog window to act like a 'wait window' or like a 'ui-spinner' for db-1.
this is required when a time taking process is initiated on a dashboard, and the user input has to be blocked for sometime to avoid interruptions, like querying a database.

Updated