The character you're likely thinking of is Forrest Gump, where Hanks wears a dress and wig for a brief scene to attend a costume party. However, this is meant to be a simple disguise and not a performance of drag.
It's important to distinguish between cross-dressing for a specific role and performing drag, which is an art form with its own history and cultural significance.