Using IMAC 5K Late 2015 as Monitor for MacBook Pro
Don't know if this is possible but I want to use my IMAC 27" 5K Late 2015 as a monitor for my MacBook Pro late 2017. My IMAC currently runs very slow and freezes often. I have a 13" MacBook Pro that works great. I want to use the MacBook Pro as my main computer but don't want to use the screen and keyboard. I would like to use the IMAC 27" 5K as the monitor for the laptop and hook up a keyboard and mouse to use. The only purpose for using the MacBook Pro would be as the hard drive. Would like to use the IMAC screen and my secondary screen set up as the monitors. I would also like to use the IMAC camera and speaker and mic as well. Is this possible ?
iMac 27", macOS 10.15