The Cockeyed Miracle (1946)
The Cockeyed Miracle is a 1946 fantasy film about a ghost who, with the help of his father (also a ghost), stops his best friend from leaving his family penniless. The ghosts are played by Frank Morgan and Keenan Wynn, the villain by Cecil Kellaway. The film was based on the play But Not Goodbye by George Seaton.
More at Wikipedia.