How to draw stacked polygons?

I’m using PolygonDrawing to draw polygons for my project. I want to draw stacked polygons like this

.
The problem here is that the starting point of the polygon must be in the previous polygon. Seem polygonDrawingTool Does not support that. I want to do like this fabric.js - draw a dynamic polygon with mouse click - JSFiddle - Code Playground

Details polygonDrawing at here Polygon Drawing Tool.

someone please help me.

thank all