title: Get Window instance from Window Handle
body: <p>I am able get a Window handle from running applications using the following code.</p>
  
  <pre><code>foreach (ProcessModule module in process.Modules)
  {
    if (module.ModuleName.Contains("PresentationFramework.dll") || module.ModuleName.Contains("PresentationFramework.ni.dll"))
    {
      IntPtr window = process.MainWindowHandle;
    }
  }
  </code></pre>
  
  <p>But I want to get the Window instance from this handler. Is it possible?</p>
  
  <p>Any quick idea please?</p>