Add helper method to convert rectangles from one graphics unit to another.