How to script GUI Texture Window to see it in Script (Object's component)

I must know about it because it is so importantly. This will must be as for at this picture!

I believe this should adjust the apperance of the texture’s box. Did you try this?

(Texture2D)EditorGUILayout.ObjectField(..., typeof(Texture2D), ...);