The grid decoration is used to define a horizontal and vertical reference point, primarily for snapping when using the edit tools.
Related reference
Style Editor dialog