- Backport to 1.21.1: Add method to wrap gui layers (#2444)