Dorsal Instability

I went to a doctor today about the shoulder problems I posted about earlier and it seems that I have dorsal instability in my right shoulder, which means that the humerus doesn’t attach to the shoulder like it should. I am going to have a few more tests done, but I am fairly certain at this point that I will need surgery to correct my shoulder.

The doctor mentioned rehabilitation after the surgery and I was wondering if anyone here has had a similar experience, and if so, how you recovered from and trained around it.