resize a div using JS

I need to add a resizer for image and column tags because Notion doesn't send me dimensions.

For that I need to understand how to add a handle to the edge of these images and then on dragging of this said handle it should resize the image width/height.

God help me because I don't like frontend and Its going to be a wild ride figuring out drag and drop :-)