public static API_GuiAutomation_NativeMethods.Rect windowRectangle(this API_GuiAutomation guiAutomation, int windowHandle)
        {
            var rect = new API_GuiAutomation_NativeMethods.Rect();

            API_GuiAutomation_NativeMethods.GetWindowRect(windowHandle, out rect);
            return(rect);
        }
        public static API_GuiAutomation_NativeMethods.Rect windowRectangle(this Window window)
        {
            var rect = new API_GuiAutomation_NativeMethods.Rect();

            API_GuiAutomation_NativeMethods.GetWindowRect(window.handle(), out rect);
            return(rect);
        }