BHV-14937: moon.Dialog should support the 'x' button

Tweaked the sample so the dialog is not dismissed when there is a click outside the dialog when spotlightModal is true.