That looks like a wedge used around the exterior door to center it during installation. I replaced my entire door assembly on my 5er and those wedges were around the perimeter, 2 top, 2 on the unhinged side. Once installed the can be discarded. Yours looks like they may have been screwed in. Check the top of your entry door for threaded holes.