Areas can be used to block off certain areas of the NavMesh 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