- Backport to 1.21.5: Add method to wrap gui layers (#2442)