window: Implement configurable confirm-on-close
RMImport: Import promptonclose -> confirmclose