IMainFrameModule::RegisterCanCloseEditor

Register a new callback for determining if the editor can be closed