Hello, world!
Try hitting the tab key and notice how the focus stays within the dialog itself.
To close dialog hit the esc button, click on the overlay or just click the close button.
Element used to launch the modal would receive focus back after closing.