Thermally driven disc winds as a mechanism for X-ray irradiation heating in black hole X-ray binaries: the case study of GX339–4