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 through your doors.

Here's a quick example (ignore the low fps :(( )

Not really a bug that destroys the game, but might need a fixin'