This snippet shows how to draw a bracket around objects on different staves.
Syntax is
^\markup\openBracket #width #height
and
^\markup\closeBracket #width #height