Due to a bug, it is not possible flawlessly at the time of writing.
[Mojang] Måns Olson
This is a known issue that's unfortunately caused by the libraries
we're using. It's not something we can fix ourselves; rather, we'll
have to wait for a fix in one of the libraries. Some people have
reported that the frequency of the issue can be significantly lowered
by uninstalling or switching Antivirus software. Closing as many other
background processes as possible is also a possible way to reduce the
frequency of this crash.
Seeing that it can help to disable or uninstall your anti virus, I suggest you create an exception in your anti virus for all steam executables like Steam.exe and GameOverlayUI.exe or the whole Steam folder.