copy sample OnGUI code.