Creates a modal Dialog layer with controlled/uncontrolled state and focus.
Dialog owns one global screen key listener. It traps Tab among registered
elements, handles Escape only while topmost, restores previous focus, and
removes all listeners on destroy.
Creates a modal Dialog layer with controlled/uncontrolled state and focus.
Dialog owns one global screen key listener. It traps Tab among registered elements, handles Escape only while topmost, restores previous focus, and removes all listeners on destroy.