This was covered in WeCrashed (and not sure how entirely accurate it is) but JP Morgan gave him a huge line of credit with his shares as collateral.
As a common person, I've been looking into this myself with my RSUs and option grants. But there aren't credit lines that banks offer using equity as collateral for the common person.
I guess when your net worth is high-enough, you can pull anything off with the banks.
Fidelity Fully Paid Lending Program [1]? not quite what you're looking for, but still generate cashflow from owned equities.
[0]: https://www.schwab.com/pledged-asset-line [1]: https://www.fidelity.com/trading/fully-paid-lending
Disclaimer: i am not a fiduciary, nor a financial professional. this is not financial advice.
The closest "normal" people can get to this is with real estate.