Queue a task to focus the first element with an "autofocus" attribute inside the root element or the root element itself.
Dispose this layer and restore focus on the previous active element if possible.
Queue a task to focus the first element with an "autofocus" attribute inside the root element or the root element itself.