Saree draping tool in Three js

I need to build a saree draping tool (not 3D) where the user will upload some part of saree images and based on that in a 2D model it will show how it will look if someone wears it.
It can visible here Saree Draping Software Demo by TRI3D - YouTube

Can someone help me with how I can build this?

Got anything bro?