there's many ways to do it, and depends of what you're calling "a door" in your gameplay.
you can basically do it with a sprite with a solid behavior (to block movement and bullets) and a rotation behavior (to open / close) with events to make it open close and open on demand (at sprite collision ? when a key is pressed ? that's up to you)