         UserSettings.disabledMagicURLs.value = (sender.state == NSOnState)
     }
     
-    fileprivate func doOpenFile(fileURL: URL) -> Bool {
+    func doOpenFile(fileURL: URL, fromWindow: NSWindow? = nil) -> Bool {
         let dc = NSDocumentController.shared()
         let fileType = fileURL.pathExtension
         dc.noteNewRecentDocumentURL(fileURL)

            do {
                let doc = try Document.init(contentsOf: fileURL, ofType: fileType)

                if let hwc = (doc as NSDocument).windowControllers.first {
                    hwc.window?.orderFront(self)
                    (hwc.contentViewController as! WebViewController).loadURL(url: fileURL)
                    status = true
                }

                        dict["name"] = url.absoluteString
                    }
                    self.hiddenWindows[frame] = dict
//                    Swift.print("hide \(frame) to \(String(describing: alpha))")
                    win.alphaValue = 0.01
                }
            }
