Dry rot is not the only problem you face. Once you fix the dry rot you must find where the source of the leak is coming from. Its most likely your window. I recommend using a sill-pan flashing underneath the sill of the window. It captures any water leaking from your window and runs it out to the outside, instead of soaking into your inner wall structure.