Does 4.6.x include OnGUI code?

Because I have this cool inventory system that I wrote way back in 4.3/4.4 (I think) and since it’s a bit complicated porting it over to new gui would take some time.

Yes. and its included in 5 too. the editor is based on it.