Ghost Town (2008)
Ghost Town is a 2008 American supernatural comedy-drama film directed by David Koepp, who also co-wrote the screenplay with John Kamps. It stars English comedian Ricky Gervais in his first leading feature-film role, as a dentist who can see and talk with ghosts, along with Téa Leoni as a young widow and Greg Kinnear as her recently deceased husband. Gavin Palone produced the film for DreamWorks Pictures, Spyglass Entertainment and Pariah and distributed by Paramount Pictures.
More at Wikipedia.