How do I put a GUI Box in front of another GUI Box?

I have an inventory of items, which are each represented by a GUI Box. You can drag each item onto another, swapping them. When this happens a new GUI Box is created, but this one goes behind the boxes of the inventory. I just wanted to know, how can I make it so this box goes in front of the other ones? Thanks.

It depends on how you arrange your code :

GUI.Box(Rect(Screen.width/2, Screen.height/2,100,100),"First Box");
GUI.Box(Rect(Screen.width/2, Screen.height/2,100,100),"Second Box");
GUI.Box(Rect(Screen.width/2, Screen.height/2,100,100),"Third Box");

The third box will go top and the others behind it.

You might find the sorting depth (GUI.depth) helpful with this: