Click on the green flag then click the your mouse on any part of the stage and then the pen will draw a square there.
Thanks to my scratch ebook for helping me out in the scripts.