what is the best way to create dynamic shapes with labels on them and text boxes

What will be the best approach to create draggable and movable dynamic shapes
that contains labels and edit text widgets on them .
i attached images to show what shapes i mean and more different shapes are planed


polygones.png (18.5 KB)