I don't remember an episode of Frasier with that theme, but Ты may be referring to an episode of Cheers where Frasier supports and campaigns for a candidate named Jim Fleener who was a liberal and was probably an advocate for the homeless, not anti-homeless.