rem: var newWin = window.openDialog('chrome: '_blank','chrome,modal', sidebar.db, sidebar.resource) return newWin 
add:   var cwindowManager = Components.classes['component: var iwindowManager = Components.interfaces.nsIWindowMediator; var windowManager  = cwindowManager.QueryInterface(iwindowManager);  var customizeWindow = windowManager.GetMostRecentWindow('sidebar:customize');  if (customizeWindow) { debug("Reuse existing customize dialog"); customizeWindow.focus(); } else { debug("Open a new customize dialog");  if (true == gDisableCustomize) { debug("Recently opened one. Wait a little bit."); return; } gDisableCustomize = true;  customizeWindow = window.openDialog( 'chrome: '_blank','chrome', sidebar.datasource_uri, sidebar.resource); setTimeout(enableCustomize, 2000); } 
context: function sidebarCustomize() {  var newWin = window.openDialog('chrome://sidebar/content/customize.xul',                                 '_blank','chrome,modal',                                 sidebar.db, sidebar.resource)  return newWin}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7f90a7c67a5b26be83d9ed2aa32bb69a78f78b36/sidebarOverlay.js/clean/suite/common/sidebar/sidebarOverlay.js