Modal operator to: (A) Create surface (B) create vertex on surface
This was really complex for me, its a bit messy but i share it anyway.
Hope will help someonelse XD
Its just a script, you paste it in you script and run.
A tool and a panel will appear in your 3Dview, follow instruction for play .
https://mega.nz/file/wz4VCaaJ#7TxFvZqyeQZOFy7syu56As5RionvmfhYuTs0JvhZ8h8