A pergola can be the perfect solution, whether you want to create a cozy retreat or an entertaining area.