I were tried to make library from process
to isolate application login process as library.
when I invoke process to login application, the logged-in application windows was opened and which can be used to target by another sequences.
after converting process to library,
after login steps were finished, application windows was auto closed.
I modified the library project setting to deny auto-close window (not good for other libraries)
but opened application can not be detected for targeting by another sequences.
I hope you used the Use application\browser activity to launch the application or webpage.
If yes, you have to do some modifications in the properties of Use application\browser activity to handle this behavior.
Open the Properties Keep Always option for open option,
Keep Never option for close option,
In the Window attach mode keep the Single window option,
In the Resize window option select the maximize.
The above properties have to change for the Use application\browser activity used in the Library.
For the continuation of the library there is sequences that you said for that there is use application\browser activity to continue on the same browser.
Open the Properties Keep IfNotOpen option for open option,
Keep Never option for close option,
In the Window attach mode keep the Application Instance option,
In the Resize window option select the maximize.
Check the below image to know the properties of use application\browser activity,