As another commenter suggested, it's common for projectors to have a movable/adjustable lens (also called lens shift) to move the projected image without altering focus too much.
There are also ultra short throw projectors that can be mounted a few feet away from their target, designed for classrooms. They probably don't have the blackest black levels though.