what if the door opens out? Most new building codes require that.
Commercial buildings yes, but it is pretty impossible to zone for residential buildings, because doors are easy to modify to swing in, which is the preferred method for residential.
A simple logic for residential doors swinging in is to protect them from rain damage. An exception is mobile homes, because there would be a cost in lost area inside if the door swung in.