Create a new layer

Creates a new layer in the specified document with the provided name, color, visibility, and other properties.