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