Drain resistor