Sample on how to use the Dialog element.