How to create a physical animation like grabbing a handle

Hello! I’m questioning how can I create a animation where the player grabs a handle/door and closes it. Something like like that, if you can help that’d be great. I think it’s called a physical animation, but I have no idea how to set it up. Thanks for the help!