How to draw the 2D texture in the scene window.

I’m writing several editor extensions for the 2D part of unity and can’t figure out how to draw a 2D texture from inside OnSceneGUI.

Below is an example of what I want. I want the little blue dots for my editor. Right now all I can get to draw is Handles (the white box) and labels.

I can’t find any information on drawing a non re-sizing texture like the blue dots shown below from OnSceneGUI.

[20983-blue+dot.png|20983]

instead of drawing in the OnGUI(), try drawing using the OnDrawGizmo(), Gizmo.DrawIcon could help you, I use them for debugging purposes while on editor, I think it is what you are looking