How do I open up a room with sliding glass door?

I want replace a window with a sliding glass patio door. How would I do this?