She went to the entrance to greet her friend.

Literal

She [topic-は] friend [object-を] greet [purpose-ために] entrance [toward-へ] went.

迎えるために玄関へ行った — 玄関 (げんかん, 'entrance, foyer') is the standard word for a Japanese home's entryway. 迎える (むかえる, 'to greet, welcome') takes ために for purpose. Going to the genkan to greet a visitor is standard Japanese etiquette.