How does 3D mesh morphing work?

Create a Sim in The Sims 4

In the Sims 4, you can drag to reshape the face when you create a sim. How is the geometry morphing implemented?

In general, how do you code a system that morphs different parts of a mesh? Example: