display – iMac 24 inch – how to connect MacBook Pro to it?

Could anyone tell me, is that possible to somehow use MacBook 2020 on iMac 24 inch (as a display monitor)?

If not, could you please suggest me a solution how I could do something similar to it.

The reason is: I have my work laptop and do not have a monitor. I want to buy a monitor or iMac and use it for working under my work laptop.

Thanks!