Basically, it works with any kind of door that has a slow opening animation compared to the regular iron or wood doors. (apart from the drawbridge)
All you have to do it double tap e (or your interact key) on the door and it will immediately start the closing animation, allowing you to sprint...