Self-registering global web component that manages the overall UI on the attached
This component keeps track of open menus and dialogs and attaches click and tap (onclick or ontouch) events to close them.
By default, this web component is attached to the
body element, but it can be attached to a
div tag if this behavior is too broad for your particular implementation.