Hello AntXXX18,
We have a tutorial that walks you through how to make an automated door. This is not the swinging door that you had in mind but you should be able to adopt the method for your purposes. Typically the door is modeled separately from the frame and used with it’s own set of properties. This is so the door is not driven by bones or sockets.