The Veep alum will guest on the CBS comedy as a ghost who's a “gregarious robber baron” and “philandering scoundrel of a man” from the 19th century.