New method to draw a rectangle with a specified rectangle object.
Authored by: josefjordan 2023-09-20
Parent: [r1194]
Child: [r1196]