For those who are interested in teaching this trick to their dogs, how would you go about doing it?

I'm currently trying to teach Jamie to close doors, but no luck so far xD