A dialog window doesn't need to cover the entire screen. If you want to prevent events from going through it, simply give it an invisible widget that will cover the entire screen. If it has a collider on it, it will block events from going through it.
ALT+SHIFT+W, ALT+SHIFT+C