Adds a closed (optionally) round-rectangle contour.
The coordinates of the top left point of the rectangle
The size of the rectangle
The radius of the rounded corners