How to do freehand drawing in editor ?

Apart from ready made components, user can also draw freehand in page canvas by enabling draw mode. The following screenshots illustrate how to draw in editor