It can be done but all glass will have to come out,then put a 4"x2" timber on edge against the door frame on the floor level, then force the door back into the frame using a brace at 45 degree angle screw to the frame temporary on the top where it was sticking out,sometime it can works overnight or 2/3 days but no good if you need to go in and out of the door.
Another way is to put a timber laid flat on the floor approx 600mm then nail a timber on top of the door and force it back nail under the door frame then at least you can still walk in and out of the door.