How to make an object move along with an object with a model animation

Hello, my door model and window model are separate. I want to move the window together when I play the door animation, but I can’t find a way to put the window under the animated bone of the door. Is there a way? Who knows how to deal with it, thank you!

If you have the name of the bone, you can search for it and attach the window as a child of the bone. Eg: How to attach a weapon(Gun) to a character bone?