If the company sucks, senior management gets cash back first while the investor gets top-of-stack liquidation preferences. If the company is doing great, the investor gets to buy stock at a price almost always lower than market.
They’re common in Silicon Valley, because they’re good for founders and the Board members. But they’re rare in public markets. The closest thing I can come up with is the current clusterfuck with Shari Redstone.