This example demonstrates that the modal behavior of dialog component. Choose "close on overlay" option from property panel to decide whether the dialog can be closed when clicking overlay. Click "open" to show the dialog again, if it is in closed state.
The modal dialog prevents to access the parent application. So, the user should interact with the dialog before continuing with the parent application.
More information on the modal behavior of Dialog can be found in the documentation section.