Answer
The film is "Down and Out in Beverly Hills," a 1986 American comedy. It features Richard Dreyfuss as Dave Whiteman, a wealthy film composer living in Beverly Hills. When a homeless man named Jerry (Nick Nolte) stumbles into his life and refuses to leave, Dave's life turns chaotic as he tries to maintain his luxurious lifestyle while dealing with the presence of Jerry.