Suggestion: Switch the focus between viewer window and attached dialog

I'd really like to have this feature expanded to also switch the focus between the main viewer window and a dialog that is attached to this window.