isnt 别关门 also correct?
It is correct. "Instead of saying "do not" with 不要 (bùyào), we can say "don't" a little more quickly and forcefully by using 别 (bié)."
Why do we need 要 here? Why not just 不关門?
I believe 别关门 is also correct.