Add support for creating similar draw targets and querying the current format and transform

More stuff needed for `box-shadow`.

r? @metajack