The screenshot shows a rectangular selection filled with the
After creating the selection, you can either create a filled
or an outlined shape with the foreground color of your choice.
If you go for the first option, choose a foreground color and
fill the selection with the bucket fill tool.
If you choose the latter option, create an outline by using
selection menu item from the Edit
menu. If you're satisfied with the result, remove the selection.