It’s not absolutely necessary, but leaving the microwave door open will allow excess moisture and odors to escape. This in turn may protect some of its internal components. It’s much more important though that you regularly clean the interior of your microwave. Do that and you’ll achieve much the same thing, without any smells spreading through the house!