I want to say I saw this back around the mid 2000’s.
It was an animated Halloween special told in 3 parts. The first part was about a dead cat that came to haunt the protagonist as a ghost. The second part was about a group of kids trick-or-treating. The final part was about a bully teaching the main characters to “undress” women with their mind’s eye.
It was a very raunchy and profane cartoon. I think I saw it on HBO and the first name of the producer/director/writer was Luke.
Thank you for your help!