Removing Windows from Doors

Does anyone know the proper way to to remove the door glass frame and windows out of the front doors??? What is the plastic material that covers the edge of the window where it slides and is attached to the window? Is it available new? It is a U shaped part.