The tube that goes into the tank only has to drop below the outlet of the "box" this will mean that when the pump stops and the water level drains down it will not lose the syphon and it will start automatically when the pump restarts.
The only important dimension is the t piece or outlet of the "box" has to be below the level of the water in the tank and you can fashion a simple surface skimmer by turning up the inlet tube (in the tank) with 2 elbows, note the 2 elbows must be below the outlet t piece. This will also assist with maintaining the syphon.
There seems to be some evidence (not my experience) that says the longer the "u" tube runs down the back of the tank the better the system will flow.