This lifts the context handling from commit hash 8eb687c as this does all the required handling for us that the older glutin once did.
8eb687c