What extent of "western" wealth is due to resource extraction and/or colonial exploitation?

This is question I first started asking in my teenage years reading things like the "open veins of latin america". At the time I was somewhat sceptical – I was leery of the crude marxist-influenced views of colonies as economically driven imperialism (Hobbs and Hobbsbawm, Lenin etc). Whilst colonoialism undoubtedly had catastrophic effects on many of the local populace it was not clear it actually benefitted the coloniser that much (at least economically). It was something done for prestige, or because it benefitted some specific part of the elite and might have been a net cost for the imperial power. A classic lose-lose (bad for the natives and bad for the colonisers).

I never got to research this properly. I started digging up some econ papers on the amount of gold and silver extracted from the new world. I'm not sure how much i got from this or how, ultimately, useful this enquiry would be.

If the ultimate point was some kind of restitutive justice one would have to reflect on how much this was about resources and how much about culture – cf my classic jew/finns point: despite many barriers they consistently do well because of a great culture.