Fixed: when doubleClicking to open/close a sheet, issues with the parentWindow and the frameOrigin of the sheet

When opening a sheet, with a double click the frame origin of the sheet changed and the parent disappeared.
This PR fix this issue.

Test app in Tests/Manual/AttachedSheet/AppController.j