Do you have an overflow/skimmer box in the display tank? If you do then that is what prevents excess water from draining into your sump thru the drain line, Along with a drain standpipe.
The return line will also drain water back into your sump when the power goes out. The way it works is when the pump looses power then a siphon is created. The tank will flow into the sump until it gets air in the line that will break the siphon. So to minimize this effect you want to set your return lines just under the surface of the display tank. As soon as the water level drains enough to allow air to be pulled in to the return line the siphon will be broken and the tank will stop draining into the sump.
There are other ways that are less effective, one of them being, drilling a hole on the underside of the return line near the surface of the display tank. With this method, the tank would drain to the hole that is in the return line, It would in theory allow air into the line that would break the siphon and stop the display from draining into the sump. The problem with this method is that the hole can become plugged up with salt creep or who knows what else rendering it useless.
** The trick is to put the return lines in your display tank so that the least amount of water can drain out of the tank before air gets in the line.
** The lower the return lines are located in the display tank, The more water will back-flow (siphon) into the sump.
** The higher the return lines are located in the display tank, The less water will back-flow (siphon) into the sump.
** There has to be a balance of how much extra water your sump can hold and how deep you have your overflow lines placed into your display tank. Once you have them adjusted where you think they should be, then unplug the return pump to test it.