Add getRect() method to ScreenTarget.