In general, pen drawn images are considered as a path.You can click the lower right corner of the operation plane to find the path option and view the small icon collection below.One of the patterns is a circle composed of dotted lines (indicating that the path is loaded as a selection area). You can click this pattern and associate it with the layer to achieve the desired effect.It is recommended that you try this method.