-고프다 as a contraction of -고 싶다 is used in literary or poetic settings like novels, poems, or songs. It's mostly seen in the noun modifier form as -고픈.
It's not to be confused with the adjective 고프다 (for one's stomach to be empty).