A diving header from Josh Windass in extra time stoppage time sees Sheffield Wednesday promoted back to the Championship.