To dream of a visitor can mean your brain replayed a memory of a real visit. Sometimes, nostalgia, thoughts and emotions for that visitor, can trigger a dream about them.
Other dream interpretations of seeing a visitor can mean a different personality of yours is trying to make themselves heard. Superficially, it seems that you’re being paid a visit by a visitor, but actually, that is a facet of your personality.