Indefinite article and people's names
More generally, using an article before a proper noun that doesn't have one built into it (as the United States and the Rolling Stones do) is one example of using a proper noun as a countable noun.
There are several reasons why we might do that normally. One is to say something like "there are three Johns in the group", meaning "there are three people called John in the group".
Another is to add distance to the identification; "I have a John Smith on the line" is a common expression for "I have someone on the line, who tells me he is John Smith, and that is all that is known about him". A similar is to report, e.g. "One John Smith is accused of the crime", emphasising that we have no further identifying details at present, and hence we are not stating precisely which person of that name is the subject of the sentence.
Another is to use a proper noun as an example of particular traits that could also be held by others (a type of synecdoche). "The next Bob Dylan" (a singer-songwriter from the folk scene who will repeat Dylan's success), "He's an Einstein" (he's very smart), "All Mozarts have their Salieris" (not really true even for Mozart and Salieri, but let's say we believed the film Amadeus was accurate).
Another, almost inverse to this, is to speak of the person or thing signified by the proper noun at a particular time, or from a particular perspective: "The London of a hundred years ago was a notoriously unhealthy place", "The John you know is not the John I know" (that could also mean you are talking of a literally different person, depending on context).
The above are reasonably standard, though figurative.
Another common variation is to jokingly make use of these forms, when one normally would not. If talking of a friend, we would generally use their name as a proper noun, because that's how names work in English, but since every person called George is "a George", and so on the form is logically correct, though not strictly good English. To use it of a friend could suggest that you have gotten as far as knowing it's a George, but not which one, or that George's are all alike and you've hence found someone who will have all the George-like qualities that George has. Both obviously are not sensible, but therein is the joke. Another variant would be if you were looking for George, and then spotted him. Again "ah, there's a George" would suggest that you'd were just looking for Georges generally, which again is not sensible, hence the joke.
All of these last cases are examples of deliberately bad English, used as a joke, rather than something that would normally be considered correct.
[A completely different case is when there's a word that is the same as a proper noun, but isn't a proper noun, of which some slang cases started as a proper noun and are hence sometimes capitalised.]
None of the existing answers seem to focus on the exact reason using for the article in OP's context.
It's nothing to do with the possibility of the speaker knowing any other Joeys or Pollys. It's a (usually, affectionate) "upgrading" of the specified name to identify an entire class of people, with the (facetious) implication that the actual Joey on the scene is the archetypal example of that class - in practice, often the only example known to the assembled company.
The net effect is to suggest that Joey exemplifies some particular qualities which are difficult to express other than by citing him as an example (cf Tony Blair's John is John, of John Prescott).
My favourite example of "elevating" someone's name to a general class is Tigger, singing:
But the most wonderful thing about Tiggers
Is I'm the only one.
I think we’d need to see the full context of the examples you mention to know what was intended, but the indefinite article before a name, often with a further modifier, can show that the name is being used generically. You might see or hear, for example, He’s a right Charlie (a fool) or He’s a Norman Nomates (has no friends).
The definite article can also occur before a name, as in The John Harris I knew 15 years ago was not the John Harris I saw today.
It's also said when you know more than one person by that name, when saying "I know Jack' could mean your friend/brother, etc.