You basically hire someone from a "contractor", but the "contractor" has a business entity in the country where the worker is, and employ the worker, pay taxes, insurance if applicable and so on. There are some large companies which have a presence in a hundred or so countries. (There's a term for this, but it escapes me at the moment.)