Parameters
- rect
- The size and location of the rectangle to draw, in view coordinates.
- drawnew
- Whether to draw the new rectangle.
This always erases any earlier rectangle drawn by this method. It only draws a new rectangle if drawnew is true.
If DrawsXorMode is false, this draws a rectangle using a checkerboard pen, instead of drawing in XOR mode.