I'm using selenium on .net I noticed that the driver inherits from RemoteWebDriver and there are a couple of hints: CurrentWindowHandle defined As String and WindowHandles[] also defined as String, but they are readonly.
I will like to attach a running browser and the after some work, detach it (not closing it).