The Rectangle tool draws a rectangular object on the image.
To draw a rectangle:
Click the button.
In the Tool Options, select the Line Width. Selecting Filled is optional.
Select two colors with the Color Picker. The primary color creates the border color and the secondary color fills the rectangle.
Select a Blend Mode.
Select an Opacity.
Hold the mouse button and drag the pointer across the image to draw the rectangle.