Areas can be used to block of certain areas of the NavNesh both in editor and at runtime. This will completely omit an area from navmesh generation.Obstacles can be created by creating a NavMesh Area Component, enabling the IsBlocker flag.
IsBlocker