How can I draw a square with certain position and size?

I want to draw a square with any position and size I want like this. Does there is any tool to achieve it ?
image

https://root.cern/doc/master/classTBox.html
And use SetLineColor, SetFillStyle, etc as needed (by default the box is filled). See on the left of that page all the basic graphics you can draw.