If you are trading in the UK and you are a director of an offshore company then HMRC will treat your UK company as the profit making entity and apply corporation tax.
If you look at Google's and Amazon's corporate structures, they are a lot more complex than a single offshore holding company.