add window selection and picking utils from cxtest for Art's regression tests