Added a few requests to query the window hierarchy.
Very preliminary support for shared window handles.