This is part of #121565. Since the function `Layer::add_frame` returns the `GreasePencilFrame`, the `drawing_index` can be assigned after it's created. This brings us a bit closer to the goal of only changing drawing indices of frames in the internal API.