How to make dialog not have X to close on top right corner?

How to make dialog not have X to close on top right corner?

I want the X to disappear (and I'll turn off the ESC key), so that the Cancel and Apply buttons are the only way to leave the dialog.  How should I make it go away?