Grace: You know what I thought I could wear with this?
Will: Yeah, and I wouldn't.
Grace: Why not? Wouldn't it make me look like...
Will: Yeah, but in Planet Of The Apes, not Room With A View.
Will and Grace are obviously thinking of Helena Bonham Carter, who starred in both movies.