I've always heard it referred to as a "viewing" but it's always been open to everyone, at least in my experience with my grandparents or people I've been close with who have passed away. There were plenty of people that I don't remember ever meeting or knowing who showed up to the viewing to pay their respects. Friends of other relatives, co-workers, whoever.