In the demo, when I click on draw polygon icon, it is a free draw polygon mode, it doesn't create a rectangle.