Let the NodeType of root be a sub-class of Window or Application