We'll have 2 null objects in the scene that will define the corners of a box. Just like the clicks in creating a rectangle with the marquee tool, the first null defines the origin, and the other is the direction the box goes in. Take this as an exercise in understanding how expressions work with different properties, and hey, you could learn something useful.
So, let's figure this out.