How to create a nested report table like balance sheet?

Basically the title, I want to create a report with expandable rows like shown in the balance sheet screenshot

How can I achieve this? thanks!