Drag and drop of contour from a 2D view

Hi,
How can I perform a drag and drop of a mesh contour from a 2D view (example initial contour Untitled%201 is attached).
Is there any example or portion of code which allow me to achieve this point, please?