Begin: Moving some code around for the benefits of the wip viewport branch.
Begin: Moving some code around for the benefits of the wip viewport branch.

ocornut/imgui,Flix01/imgui,ggtucker/imgui,cmaughan/imgui,ggtucker/imgui,nProtect/imgui,burningreggae/imgui,aimotive/imgui-glfw,mikesart/imgui,burningreggae/imgui,ggtucker/imgui,cmaughan/imgui,cmaughan/imgui,wflohry/imgui-addons,ocornut/imgui,Flix01/imgui,dougbinks/imgui,wflohry/imgui-addons,nProtect/imgui,ocornut/imgui,bkaradzic/imgui,bkaradzic/imgui,bkaradzic/imgui,cmaughan/imgui,mikesart/imgui,nProtect/imgui,Flix01/imgui,dougbinks/imgui,aimotive/imgui-glfw