I think it's called a deckel edge and Tony's solution is brilliant.

Once you add the brush shape outline to the rectangle and have adjusted the line width to your satisfaction, you can convert the line to shape (Arrange menu). Then it becomes a simple vector shape.