Draft: Dialog: Set role for PopupMenu
This is required to make focus events work.
GroupDialog sets its type to PopupMenu. Without this commit, there won't be any FocusEvent in GroupDialog, so the dialog won't be able to be closed automatically when it loses focus (the bug).
Edited by Fushan Wen