I think what you mean is something like this:
Suppose you are trading USDT-BTC and you deposit 0.04 btc to increase your USDT funds, so after making the deposit, you trade BTC for USDT. Then that “extra USDT” will be considered as profit. It happens even on Binance PNL calculator. Same happens for withdrawals.