editor.dialog returns the dialog window