Two persons simultaneously using one MacBook Pro (working in two apps simultaneous )

Two people using the same graphical user session, with different input devices, is not possible on macOS.

Remote Session - VNC

However, you can remote log into a Mac and share the computer's performance. Remote log in will give you two graphical user sessions running on one Mac.

You could use an inexpensive computer, such as a Raspberry Pi, and have it remotely connect to your MacBook Pro. One user could then use the Mac directly and the other via the remote connection and a monitor.