Step 1. Take out the rotten wood. Remove as much of it as you can.
Step 2. Add a layer of wood filler material. Let it dry completely before continuing.
Step 3. Continue to add wood filler material, one layer at a time, until the hole is completely filled.
Step 4. Sand smooth.
Step 5. Paint.