The incident happened early Tuesday morning at an apartment on the 700 block of West 27th Street.
Police said three men, one of them armed, knocked on the door and forced their way in.
They assaulted the man inside, who then managed to lock himself in a bathroom.
Investigators said the suspects stole two PlayStation consoles and an Xbox.
No arrests have been made. The victim was not seriously hurt.