draw mac subwindows in the right place with the right clipping mask