If opengl driver is loaded, then setup the opengl data for foreign window.