Add parent to the returned window element