Open the microbit programming platform from makecode: https://makecode.microbit.org/
In the “Advanced” section go to “Extensions” and search and add extension “Turtle”.
Using the newly added blocks in the “Turtle” section, draw a square on the simulator, like the picture below: