If you have a company in an area where the rent levels (and cost of living in general) are high, you will have to pay high salaries if you want to have any employees at all. But presumably having a company in the area allows you to generate more wealth than you would in any other area, which offsets the salaries.
The only way you can take advantage of it is by moving to such a place. But note that companies are taking advantage of the reverse by moving their offices to places where the cost of living is lower, which means they can lower their salaries.