Here's why it doesn't make much sense:
* "Ugly" is not a noun: It's an adjective, describing something as unattractive. You can't have an "ugly" on an ape.
* The comparison is unclear: Even if "ugly" was a noun, the phrase doesn't establish a clear comparison. What is being compared to what?
Possible Misinterpretations:
* "Like an ugly on a rug": This might be what the speaker meant. It could be a way of describing someone who is out of place or awkward.
* "Like an ogre on an ape": This would make more sense grammatically, but it's still a strange comparison. It might suggest someone who is both large and intimidating.
If you heard this phrase, it's important to ask the speaker for clarification to understand their intended meaning.