Adding the ability to pass a page object into the withWindow method 

Like the withNewWindow method, withWindow should allow for the inclusion of a page object to better test and manipulate child windows. Currently, one has to either manually control which page object the browser uses or manually traverse the child window to get to objects within the step definition.