Kumon Reading Level J <Quick>

What literary device is used in the phrase “windows like empty eye sockets” and what effect does it create?