I would let her be until she passes the egg, then try to push the cloaca back inside. She will probably continue to lay like she usually does for the next several days, so be prepared. Put some honey on it or lubricate it with KY Jelly, but honey is better. Keeping her in the dark for 16-18...
If you can push the red tissue back inside with some honey, then place in in a cage in a dark space with little light for a for 18 hours a day. If she lays an egg, it may pop back out, so put it back in. The darkness will eventually slow the laying down, so she can heal. She may always have a...
It sounds as though she may have a prolapsed vent. Is the tissue hanging out still pink or has it turned black or discolored? She may have also had vent gleet. If you can try to lubricate the thing sticking out which is the cloaca and push it back inside, and hold for 5 minutes. Honey has...