Actually it is no an offence to be in an offside position like this. At the point of McCourt playing the ball to Stokes, Hooper was not offside as he was not/did not...
1. interfering with play
2. interfering with an opponent
3. gaining an advantage of being in that position
The fact is, when Stokes received the ball he was not officially interfering with play - when he received the ball from Stokes, he was behind the ball - hence being onside. Sadly, I firmly believe he gained an advantage and he did, but in the Laws of the Game he did not (set out by the Home Nations and FIFA). As the ball from Stokes was a different phase than the ball from McCourt.