Drag ui component?

Hello, from this Code Snippet
I’m trying to let user able to move the component in form.
Is there a way to do that easier? or I have to put it in dashboard as link above? and if it’s in dashboard can we get something link rows/cols out of it?
thanks
(I tried to use 2 dashboard as one for all ui listed and another for form place but cant figured it out how to move outside the dashboard yet)