Rot doesn’t necessarily need to be cut out. There are epoxy products that will wick into the fibers and strengthen them, and then epoxy putties that can be used over the top prior to painting, which will also have the side benefit of being more resistant to rot than wood. I’m not sure that I would use those products in this case though; replacing the frame would probably be less of a hassle.
Rot doesn’t necessarily need to be cut out. There are epoxy products that will wick into the fibers and strengthen them, and then epoxy putties that can be used over the top prior to painting, which will also have the side benefit of being more resistant to rot than wood. I’m not sure that I would use those products in this case though; replacing the frame would probably be less of a hassle.