You have to remove the trim and casing on the door frame if there is any. Then cut the surrounding drywall to expose the existing studs. Then add some new studs, cut and install the drywall, and tape and patch the drywall.