A frame is a basic shape or structure, especially one that outlines or surrounds a door or window. If you slam your bedroom door hard enough, the whole frame might shake.
When frame is a noun, it is usually some kind of enclosure or outline that is also a physical support — like the frame around a window, a bed frame, or a picture frame. One frozen image, or still, from a movie is another kind of frame. As a verb, to frame means both to enclose something in a frame, the way you frame a painting, and to make it look like an innocent person is guilty of something.