How to make a motor capable of resisting physical movement?
You could use a generator as a variable load.  Use a PWM signal to short circuit the output of the generator.  Shorter duty cycle is less load, longer duty cycle is more load.



A generator is just a motor whose shaft is turned by an external force.