The toDp() method is only available in Local
toDp()
with(LocalDensity.current) { offsetX.value.toDp()}