Have you asked about it at physical therapy? Not about riding, but specifically about getting your leg over the seat. That can be a dangerous motion if done wrong. Hips are easy to "pop out" during recovery.
Here's the method I use to get on without trying to raise my leg to the side. Left foot close to the motorcycle. Left hand on handlebar. Raise right foot behind you by bending only your knee. Cradle your boot in your hand at the ankle. Heel touching your butt. Steadying with your left hand on the grip, bend away at the left hip, pulling up with your right hand. Your right hip doesn't bend to the side much at all. As your knee clears the seat, relax into it. It really is simple. Just don't try to raise your right leg using hip joint or muscles.
Now, if your new hip is on your left side, never mind.
Don't push it. Don't screw up the doc's good work. Do the PT and let your body tell you when you are ready.
Good luck.