Implementing something like Interact js

Hello guys, my goal is to implement a drag and drop node something like https://codepen.io/mikedryan/pen/ZbPGvx. So far im sure u have to create a “resize_container” that have “resize_drag+” content. My question is where to put the lib logic in a plugin or somewhere else and how to save on resize. Can i use the source of prosemirror-tables resizecolumn for help ? Thanks in advance.

The drag UI logic might work best as a node view. How you structure resizeable nodes in your schema doesn’t sound like it matters a lot.

Thanks a lot for the direction marijn!