How to get reference to selected assets in content browser?

Just to reiterate, this documentation should hopefully help you: